package com.china08.yxyapi.entity.db.lessons;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 校本课程 课时
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_lessons_school_lesson_item", catalog = "yxy_lessons")
public class YxyLessonsSchoolLessonItem extends BaseEntity {

	@Column(nullable = false)
	private String lessonId;// 对应的课程id

	@Column
	private String chapterId;// 所关联章

	@Column
	private String title;// 名称

	@Column(columnDefinition = "text")
	private String intro;// 简介

	@Column
	private Integer status;// 状态-1-删除,0-草稿,1-待审核,2-审核通过,3-审核拒绝

	@Column
	private String rejectReason;// 拒绝原因

	@Column
	private Integer preview;// 是否可以试听 0--不可以试听, 1--可以试听

	@Column
	private String videoId;// 对应的视频id

	/** 排列序号 */
	@Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
	private Integer orderNum = 20;

	public String getChapterId() {
		return chapterId;
	}

	public void setChapterId(String chapterId) {
		this.chapterId = chapterId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getPreview() {
		return preview;
	}

	public void setPreview(Integer preview) {
		this.preview = preview;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getVideoId() {
		return videoId;
	}

	public void setVideoId(String videoId) {
		this.videoId = videoId;
	}

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public String getLessonId() {
		return lessonId;
	}

	public void setLessonId(String lessonId) {
		this.lessonId = lessonId;
	}

}
